import request from '@/utils/request'

// 查询让步接收单列表
export function listConcession(query) {
  return request({
    url: '/wm/concession/list',
    method: 'get',
    params: query
  })
}

// 查询让步接收单详细
export function getConcession(id) {
  return request({
    url: '/wm/concession/' + id,
    method: 'get'
  })
}

// 新增让步接收单
export function addConcession(data) {
  return request({
    url: '/wm/concession',
    method: 'post',
    data: data
  })
}

// 修改让步接收单
export function updateConcession(data) {
  return request({
    url: '/wm/concession',
    method: 'put',
    data: data
  })
}

// 删除让步接收单
export function delConcession(id) {
  return request({
    url: '/wm/concession/' + id,
    method: 'delete'
  })
}
